Refactored TemplateURL to BaseURL
Log/Debug commenting.