Changed timer to use integers