Allow user implemented control function