Implement add and remove commands.