Added some stuff to deal with exact lsc solve.