Commit using the method