Store the timeout as an Integer

The timeout expects an integer, but currently it is a Long.