Added some functions to make it a little more ClearOS 7 friendly