Modify define escape function to enhance scalability