Latest changes. Removed twitter and some unused functions