Now using madx formula instead of getfterms in sbs.