Added autonomous code and debug constants.