Refactored 'hsinspect'