Refactored for CocoaPods