     while @getNextOption state
       null
 
-  getRandomResult: (data, callback) ->
+  getRandomResultData: (data, callback) ->
     if data and callback and data.length > 0
       callback(if data.length == 1 then data[0] else data[Math.floor(Math.random() * data.length)])
 
-  getUriFromResult: (result) ->
-    if result and result.images and result.images.original
-      result.images.original.url
+  getUriFromResultData: (data) ->
+    if data and data.images and data.images.original
+      data.images.original.url
 
   getSearchUri: (state) ->
     @log 'getSearchUri:', state

    }, state.options
    @api.random options, (err, res) =>
      console.log err, res
      @handleResponse state, err, -> @getRandomResult(res.data, @getUriFromResult)

  getTrendingUri: (state) ->
    @log 'getTrendingUri:', state

      rating: process.env.HUBOT_GIPHY_DEFAULT_RATING
    }, state.options
    @api.translate options, (err, res) =>
      @handleResponse state, err, => @getUriFromResultData res.data

  getRandomUri: (state) ->
    @log 'getRandomUri:', state
