Register script