Bug-fix; X and Y axis swapped in output.