Put timer code into separate file