Updated the variable by mistake. Changing back to `$pattern`.