Update for firebase