Support for fast- and slow-sync modes.