Changed timer method as to be more cross platform compliant. Still needs tested however on windows.