Corrected the calcAdjs function to wok once at the satrt.