Added amend option to commit operation