The global origin wasn't taken into account, and the output had an issue.
It outputs values, but they don't seem quite correct...