Implement basic filtering

Signed-off-by: Ian Macalinao <me@ian.pw>