Updated to work on OS X 10.7+ only.