Added the necessary patches