Added support for iCloud sync.
Added support for different forms of security classes.