Made pattern matcher not reliant on a url in the context