Upload function added.