Add plugin function for scanner v2