pce: Working version