Add ability for pin functions to accept int or string argument