More robust external solver interface