Part of autonomous code added