Updated Query Modem to write to registry