Added erase function