Added helper functions for erasing