Kind notice: commit_params is called more than once; this introduces a memory leak.