Pathname, OCRA-able

Uses pathname for added stability. Written for standalone functionality via Ocra.