Change call to CreateCommit() because used api is obsolete