Working on enumeration with endpoint 0