For some reason the templates don't seem to support required enum parameters. There is probably a better fix, but this works.