Changed ResourceKey to an enum for type safety