Gotchya, added check to `storePid`