Allow type to be specified