Updating for Swift 1.0