Correctly calculate and output LUID value.