Original liblight.c