Bug Fix: foreach() method was not calling with_update() correctly.
Merge branch 'hotfix/1.0.1'