Put this inside solve_conc. Hard to read this way and lot of boilerplate.