Removed CommitBuffer and RollbackBuffer functions.
Changed the memory allocation method to be more efficient.