Now supports dynamic serial ports and templates.