Work on DiscreteProblem optimizations.