Added stuff to store the bot's session ids.