Some correction to get it running. Still having issues filling control plots