Multi-level history functions added.