New: deviceSetup() and deviceTeardown() support