Modification for Mac compatability.