Fixed status filtering. Refactoring.
example
Swapped order of first two args to trigger.
docs