Added custom escape function.