The implementation for the auto escape