Added onPreMatchHook to Router