Cleaned main module