Work with pem.