Add -engine support to ts app.