Hacked together a script to run when using OSX