Changing reset functionality