Safer way to get pocketId.