Replaced addController with insertController. Added the ability to programmatically remove controllers.