Rewritten some part of gem_utils to make it more adaptable - ported managemforce to gem_utils functions.