Added const int sfs = sf.ns;