Code is conjured up as a spike and is in need of refactoring: - Add (debug) logging - Convert chunks of code into methods - Make it more robust