mha_control function development