Changed commit logic.