Trying to sort through association with criteria. This is frustratingly difficult. There is surely a better way to do it but for now we'll keep stumbling through.