Already written... but before i send it to you... few questions.
How granular are you looking... my current mod here has 10 values in the table. So if you want more, I can extend the table.
Also, what version of rom you after? EM2004?
Hopefully we will be doing the same here... again