Adds sync and exit command