Added dynamic device choose.