Modified getNeighbours API method to require neighbours count.