MySolver works in both directions.