[#13] Update reload middleware to use history logic.