Added upload functionality.