PD working (most part)

Left to do: