Updated Program to use two controllers