mkws.log now assigned from existing function rather than vice versa.