Make status filter dynamic. Fix #382.