Debug + optimization.