Code for control panel testing project