Trying to figure out a better way to do config generation