Added encoding and syntax for mac os x