Added frmSetup
New function for writing to registry