[New Feature] Keep history of queries.