Implements topic command.