Made the helper functional for all(to be tested) OS