Adding filtering by PIN  and confirmed. Work on #17.