Added erase function (untested)