Added prototype history graph code