Added beforeUpdate and afterUpdate to IteratingSystem

Found this useful to override this method when necessary.