This callback needs to take the pin as a param