reworked the nhqm I wrote earlier today.