Added template pre-loading