Started working on Mac (tested on 10.8.5)