Fixing syntax and tweaking timing.