Added ability to query bot.