Added Mac OSX Functioanilty.