Add hard reloading function