Cleaning up flags.