Introducing variance calcultation and outputs a result for each step