Dynamic config stuff imported from previous stuff, and serial comm cleanup to save some bytes