Add and remove pins

One file per middleware