The auto script now works