Try placing FLAGS = 0 just before @ SLEEP.