Implemented firebase.