Adding gpd code