Main template completed