Added catkey logic - only works for matched records.