Added pattern argument