Add 'where' argument to function