Added an option to put off the commit if a lot of operations need to be done.