Converted to modern Objective-C Syntax.