Added Sync and Exit command types, along with some unit test cases