bfactor script