Refactored for a modern Objective-C syntax.