Remove unused imports.
Make module runnable as standalone program.