Reinsert forgotten projection step.
Cleaning up the code further
WIP
Debugged refactored stouting -- now identical to previous implementation again.