Completed TERM driver with new device management system.