Change signature to expect dictionary.