Fixed firebase with serialization and stuff