Improved the implementation of the single-zoned habitat check utility function.