Added some debugging.
Also fixed a minor derp on my part