Adding resource object.