Adds mac compatibility