Distance maximizing problem added