Getting key values out of each line item