Improved mobile script