Reworked this script to use the easyReg module. :D