I added some code that may allow for multiple autonomous routines.