MGM: Adding commons patches for 6.31 and 7.27.