Apply a timeout