Corrected load calculation in main().