In other words, pass `saveFunction` as an argument here.