Reset function added