Added functionality for quarry limiting