Optimized Imports and add custom file logger.