Burrowing deep in the code is the only way for a mod like this.
Also, you can read the first point from here: