REwrote stuff for privatekey instructions