NEW WORKING PL+DLL WITH CONTROL OF SENDING