Handle dynamic number of controllers

Our POC env currently only has one controller.  Removing the
hardcoding number of controllers.