Fixed firebase integration thanks to mo!