Add commit functionality.