Unify Newton and Picard + some optimizations.