Finished Mining restructuring.
Functions >> copy-paste code.
No sense in repeating static variables.