Support hash for specifying custom attrs