Implement define command