http://www.picbasic.co.uk/forum/showthread.php?t=5418&page=7&p=98010#post98010