Improved reloading logic.