Updated demo to work in iOS 8