Converted visit dicts to objects