Debugging

Added a large portion of debug lines; this far it seems like it is not
being called at all.