Remove debug mode and relays, leaving some residuals of the latter