Got rid of more setTimeouts.
Added comment.