Moved function definition in SolverGUI, as it happened in the same way everywhere