Added versioning to the query log.