Possible improvements - add more functions, add resolution multipliers. This is much easier done in python, but then requires... python :)