Sort out PKey stuff