Fixed some template items.
Added some try/catch for local settings.
Added some CDO settings.