Applied konsumer's changes to resCompiler.py