Rewrite UFS's callback generation script