Added bot and Record class definitions