Added debugging code to compare with Mantid output.