Moved logging statements around and changed to aplogrerror so they include the client's IP. Now they're less frequent but more informative.
Removed the interval cumulative sleep time counter. Now the sleep time is just added to the interval start time so it doesn't have to be subtracted out later.