Removed unused code from twitter