Added support for Sync Gateway