Adding upload functionality