Added the match() function