Add `hide` option
Correctly set cookies inside capture groups