Changed timer to more precise one