in reply to problem with sleep!
Output buffering. See the question asked a few hours ago:
Sleep Not Sleeping when using without "\n"
Update: blah...the original node was a duplicate