Added minimizing and normalization