is there a plugin command for checking stacks? i had this code before i added it
Change the _states to _stackedStates[State_id]
No filter function required