Moved powerOFF function