Added ctypes wrapper for the DLL.