Extended the switching program to work with connectors A,D and E