Add support for multiple runtimes Upstream-commit: 6381ed14d13b57873eb985380e52c9ff4fd94b98 Component: engine