Moved init to a helper function to allow ASTTBMatcher to call it