Finally got usemin to work properly, even if it's hacky as all fucks