Add reset function.