Fixed syntax error, added a confirmation message