Corrected version check for queryPinCommand (thanks Antonio)