Add check running pid function.