Could you rename `type`? It's confusing to keep in my head the difference between this and `options.type`.