Updated Com handler with device select and general formatting.