Ported autonomous code