Add a "Pause 1000" right before your "Goto fan" line.

Regards,

Nick