Implementing more of the needed functions for the solver and exporting sort information.