Refactored Hets class to use the Subprocess helper.