Plugin has been tested. Also added fix to abort when 0 products is found