Adding a delegate for custom tags.