Implemented autoflex and added dashboard communication to enable it.