Fixed time and syntax errors