Simplifies and fixed attaching of public keys