Added code for closure update in lam_stg.h.