Added attempt_to with a timeout