Revise upload script