Control and surge prevention