Add a timeout to the #gets.