Added implementation of the controls init function