Preliminary reimplementation of NVM schemes.