Added a more fancy way of calculating relative differences.