Added conditionals for usesUbiquitousStorage so that it'll work in 10.6