Convert seconds to an int before waiting for it.