Added URI matching

Fixes #1.