Add pre-reload hook