This example seems to be using a fixed number of robots, just a bit more flexible in the way to distribute them. Also the number of robots is determined at Init; is it possible to determine it some later time ? I can see that if possible, then using AddEntity is useful to use manually outside Init, ...