Google summer of code midterm review

Submitted on behalf of @rkojcev.  @jrgnicho and @shaun-edwards, please review.
What is this sleep statement for?