Changed commit to apply -> performs asynchronously.