Replaced custom InlineMatcher with callbacks.