Insert vars, tags and comments.