Fixed term adding and docs metadata loading