Adds AutoReload code, commented out for now.