Completed logging of every calculation and added to mongodb