Added mechanism to query the oplog