Kdrefactor

It is also used in main module (zamek.ino)