First attempt at a linearized solver