Reg script now correctly invoked