Changed variable declaration. Added the destroy command.