Archived code for LastGraph