Now reads and writes from Firebase.