Implemented the new unit availability class.