Replaced use of setInteger:forKey: and integerForKey: which aren't valid NSMutableDictionary methods.