Updated the random auto routine