Added helper function demo to controller