Update register script