Attaching controller classes.