Add escape funtion