Added pe4 implementation for c