Removed some of the debugging from maths