Renamed clear() to be reset() and deprecated clear().