Adaptive process control