Added better logging to widgets and modified engine