Added a simple reset function.