Getting rid of all pin references