added comments, tweaked timing.