This should take in object instead - allowing for dictionaries, generic dictionaries, and record objects.