Moved twitter fuctions away from the main file.