Ported voxlap.c up to 2315 line.