Warnings police
Code cleanup
Resource leaks.