Use c_scan for detecting the nearest lights, thats much easier than reading them out of the WMB file.