Refactoring. Module Deps Writer added.