Adding reference codes and OSD characters