Sometimes you have to click the flag multiple times, or it won't work.
I made this for my robotics class.