Removed else from history functionality