Updated ipad script.