regUp and regDown needed to be defined. Fixed