Fixed typo, modified timer to compile on OSX