Updated to Swift 1.0