Made it Swift 1.0 compliant