http://search.cpan.org/~foolfish/Cha...setDetector.pm