A better way to do flags