Connected the flag to the backend