Adding callback ability for setting pin values.