Modify routing match method