Make compatible with Mac OS