Added a lot of Firebase functions