Removing some prints and debug sys.exit calls