Added pin generation