Adding template for solvers.