Adding history filter