Moved auto update code to seperate txt file