Removed the upload function
Code cleanup