Save data when inside a Loop. Fixes #3.