Pass LineBuffer class to avoid ImportErrors.