Complex amen_solve finally working