Modify upload script.