Re-added reset functionality.