Copy-paste error here? 
useLAWidthFromDB is read twice, while you probably wanted useLAAlignmentOffsets below this line