Moved User template creation to after the entire tmeplate has been created;