Initialize $lc_align variable outside loop