Added filter to limit returned history fields to only those that are visible to the user.