Added support to use prog_char for node id and token to save memory