Updated iphone script.