Solver is working! :)
Still a bug in that the final output though.