Properly MMD grep/first and friends