Added a general way to create the extended controls.