Added a debug function. Did a bit of tidy refactoring.
The two-step method. Quick commit before I reduce it to a way simpler one-step method.
Muahahaha, works perfectly.
Done for the night :smile_cat: