Firebase, Syncing and Functions