Now using a DllMain method for the DLL