Added commit method