Added regex frequnecy search
Added update function