Allow setting resource type