Updated code to reflect current twitter API