Added sample controller function