Upload legacy code