Fixed bug with variable assignment
Force the program to halt at the end.