Add support for on type filter.

Signed-off-by: crynobone <crynobone@gmail.com>