Added reset functionality to front and back end.