Added code for calculating baselines and performance metrics