Adding a slightly altered patch for 1.7.5 and over.