Add record add and record delete functions.