Add commit functionality