Add custom limits to both threading and connections