Added initial support for history.