Use a safer method of calling the DPI stuff.