Added f_all function.