Reset function added.