Updated solution saving to save x and c.