Added the iPhone client code