Modified line 121 to work with OS X 10.9 Mavericks