Added basic history functionality