Updating exit logic with something much simpler.