Started work on deviation calculations.