Simplifying troubleshooting code.