Refactored jet control.