Adding basic functions to support upload