Simple implementation of flags