also wrote this years ago now on Gunnar's site: http://home.c2i.net/gjgotaas/alecs.htm