Porting to onoff module