The code is kinda of a mess at this point. I might put a more polished version up here and/or on Lexaloffle BBS later though.