Use flags instead of variables on the private structure for things