Updated upload script