Added update_pattern method.