Extend max layer number of ghpad from 8 to 32