Updated agent with new Twitter and settings code