Added checkbox to reset function