Added history table support and added more where operators.