Firebase adaptation - 1st commit.