Also, the 'Sleep 3' lines are not needed. It should work fine (and faster) without them.