Updated for Swift Beta 5 Compliance