Fixed timing bug.