More work on botManager