Fixed halt bug
Fixed incorrect command
Added basic function return