Private constructor to force the use of enumerate.