Adding sample controller