Adding a flag method