Advanced minification