Make getPid() of type Integer for consistency.