Wiring in firebase