Adding Function to handle attach points in the templates.