Updated version for an automatic spinning feature