Added support for LightPath

This is the code required to support LightPath
Was there a problem using this check?