A more flexible replacement for usemin.