Added upload functionality