Updated maximum difference method to be correct!