Previous running version - commented upload code