Modify exiting condition.