Introduced nhood size limit to decrease run time