Adding support for firebase