Initial implementation of analyze command.