Much more efficient minify (and now works!)