Server side code for Market Analysis Toolkit