This seems to work on OSX