Updated OS X script