Turn off debug mode; other tweaks.