Written by Luke Gorrie. Additional contributions: Jeff Cunningham, This file has been placed in the public domain.