Create a separate regval() function in the solvers