Added autoReload function.