Finds best match for each template now. Still doesnt return said results though. Will do that if needed.