Eh, forget about rewrites for the moment. I'll attempt my best to wrap my head around how Kareha maintains these files and attempt an elegant solution. I think I have a good idea, but it will take me a bit. I don't actually know Perl in any reasonable capacity.