Updates pin positions.