Fixed the grepNew method