Added some register altering functionality