Imported code from hubot script