Pass pid as integer