Making the script register itself.