Added functions to twitter stream