Changes to meet Sync Gateway requirements.