Added minify functionality