Adding bedlight code