Finished implementing pin selection feature