Preliminary work to make DLL