Make sure the timeout is always an integer