Added a bunch of println debug statements.