Added patch for PAMSv3