User interface cleanup and debugging.