Adding set function to add set fields