Made Xcode 6.1 Swift friendly