Use @options[:timeout] instead of wait