Attempted fix for problems on bathroom dimmer and added debugging statements