Removed sol_global to reduce code duplication