Added functionality to analyze data