The problem was that the c_scan function was detecting the star dome, which was jacking everything up. I'm going to upload the fixed WDL file and send you the link in a PM.