Add commit callback