Abstracted the control handling