Added first analytics. Improved performance with mapReduce