Added retrieve entry if pid exists