Removed unused code, Implemented data reporting.