Problems with nwPath being referenced before the value was set. Corrected.