Allowed customization of escape function