Changed auto update to not run in debug mode