Added confirmation before reset. Fixed indentation