Automated getting PIN
Updated for fork and PIN automation