Cfg now working without issues. Still need to implement booleans for cfg