Draft and incomplete implementation of choke control algorithm