Added pattern utils