Made resourceids a type parameter