Updated business logic with new availability logic.