Using grep instead of sed due to better speed