Add history and minor fixes.