Integral text retrieval - working