Adding template to analysis phase.
Adding notion of current analysis context to allow for template contexts.