Add iterator pattern.