Added a halt function
Testing needed.