Updated to use Firebase.