Added escape function.