Initial chart adding logic added