Improved the example controller