Removed a bunch of debugging code