Changed so polling time can be fractional seconds