2nd attempt by xak http://openmcu.ru/forum/index.php?topic=472.msg8541#msg8541