Framework for upload script.