Add upload script function