Created AnalyseInputListener and PatternMatcher