Added some more boilerplate code for iOS.