Insert update before each continue statement (Fixes issue #49)