State filtering works