Add 'where' function.