Renamed Document class to Instance.