Added mysqli statement control.