Flags access put in a saparate class