Added escape function