Fixed loads of timing bugs.