Changed URI matcher to use global engine reference.