Added minimization utility for production