Added more comments for prepareDataForInsertion,