Access patch from line instead of passing as parameter