Fixed major loop/time bug.