Next() implementation