Added parameters to checkAvailabilityByRange