From VanDyke ...
Original Link: https://forums.vandyke.com/showthread.php?p=37089
I do not own this code, nor have I written this. This is a local repository containing my personal changes for personal use. Please follow the original copyright for permissions and admitence.