Hi,
Thanks all for the review and testing. The attached v2 uses theLW_SHARED check as suggested.
Thanks,Shihao