Added history grepping.