Adding resource params and fixing resource model param structure.