Add some log statements for pes