Solve_basic modified.