Added route setting code for OSX