Pin function added