[+] Added MatchPatterns function, mostly used