First pass over entire doc