Was not capturing values correctly. Fixed.