I found the M999 solution caused some issues with the host software, so instead I split config.g up into variable definitions and I/O configuration, calling the I/O config from config.g. After I connect from the host it issues a command to run just the I/O config and everything works now.
@dc42 Thanks for pointing me in the right direction!