Add dgk and pdk functions