Documented reset function.