Support root matching (closes #13)