Massive overhaul to implement web service