Added function for nice history command