Solver Template Functions