Updated sample for osx