Added HasNext() iterator methods.