Added upload functionality in pins