Made compatible with COCOTRON by replacing CFMutableDictionary with NSMutableDictionary
(NEEDS TESTING)