Allow specifying a device explicitly when initializing.