Upgraded to modern Objective-C syntax.