Removed some output printing from the solve method.