Added temp debug statements to Study.saveState