Remove get_messages call as the MessageIterator does what's needed.

get_messages is no longer needed.