Add basic commit functionality.