Fixed performance problem where bot would suck up all CPU