Adding resource field logic