Update for Swift 1.0