Cleanup unused code.
Improve epg memory usage.