Added erase_gear function.