Finishes fetch_unavailability function