Added option to list devices and option to specify particular devices.