Adaptation for OSX