Main upload of code