Updated ipad script.
Updated iphone script.