New scripts and fixes to model adjustment