Added isOSX function