Added exit(0) on success