Fixed two pass encoding and cleaned up launch process method.