Added Pahimar's LogHelper code