Fixes issue #3 Removes the bug where update or stop crashes the program