Changing lights lib to get around type issues