Added commit changes method, as a replacement for transactions.