Updated the example controller