Add availability function