Add some warnings, don't know if there's any benefit to Swift code
Update to new syntax introduced in beta 3