Fix maths and use verbose variable/method names for clarity.