Added a console log to check what the context is within the iterator