Updated pem plugin to the new builder API