Implement commit functionality