Removed halt statements