Use function 'running' to mask pid check