Implemented uploading and downloading.