Add grep prob & Modified loop