Added foreach_limit.