Added debug functionality to front end