Got a basic doubling part of solver working.