Changed the architecture to use firebase.