Add history support to the API.