Feature/pin constraints

Hi Jasper, here is the first cut of the pin constraints.