Don't forget to store flag.