Version 1.7: fixed periodical calls timing
Version 2.00: little fixes and code cosmetics