Removed an exit(0) that was used for debugging