Is the ```working = true``` necessary because of the delay of the call to sync and thus ```repository.sync_state``` isn't "running" or "waiting" immediately after hitting the button?