Added iterator pattern.