Fine-tune escaping algorithm