Added potE code