I see where you're going - it should be possible to just get rid of the `type` parameter.