Finished matching script to find the exact result match