Code Updated so as to display performance graph