Test cases.
Helper funcs.
Misc.
In progress...
Refactoring.