Implement commit command