Using `commit` instead of `apply`