Implemented functions to add data