Use the stack filter correctly