Updated auto types to explicit iterator types.