Finalize script functions setPower() setUid()