I removed the `pools` array because it was unused within the function.