Added device argument to fetch config from a single device